package com.xx.jicheng.service;

public interface SmsService {
	
	/**
	 * 生成手机验证码,并存储
	 * @param cellphone
	 * @return 四位随机验证码
	 */
	public String generateSmsCode(String name, String cellphone);
	
	/**
	 * 验证手机验证码是否有效
	 * @param cellphone
	 * @param code
	 * @return
	 */
	public boolean validateSmsCode(String cellphone, String vercode);

	/**
	 * 清空该手机的验证码
	 * @param cellphone
	 */
	public void clearSmsCode(String cellphone);

}
